package com.yoso.file.sdk;

import com.yoso.file.sdk.upload.LocalHostUpload;
import com.yoso.file.sdk.upload.UploadFile;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@ConfigurationProperties
public class FileSdkAutoConfiguration {

    @Bean
    @ConditionalOnMissingBean(UploadFile.class)
    public LocalHostUpload uploadFile() {
        return new LocalHostUpload();
    }
}
